<page-header [action]="phActionTpl">
  <ng-template #phActionTpl>
    <button (click)="add()" nz-button nzType="primary">新建</button>
    <button nz-button nzType="primary" nz-popconfirm nzPopconfirmTitle="是否确认发布资源权限?" nzPopconfirmPlacement="leftTop"
      (nzOnConfirm)="release()">发布</button>
  </ng-template>
</page-header>
<div nz-row>
  <div nz-col nz-col nzSpan="4">
    <nz-card>
      <nz-tree #rootResourcesTree [nzData]="rootResources" [nzAsyncData]="true" (nzClick)="treeClick($event.node)"
        (nzExpandChange)="treeExpandChange($event.node)">
      </nz-tree>
    </nz-card>
  </div>
  <div nz-col nzSpan="20">
    <nz-card>
      <sf #sf mode="search" [schema]="searchSchema" (formSubmit)="st.reset($event)" (formReset)="st.reset($event)"></sf>
      <st #st [data]="url" [columns]="columns"></st>
    </nz-card>
  </div>
</div>
